package com.itheima.reggie.service.impl;

import com.itheima.reggie.entity.SetmealDish;
import com.itheima.reggie.mapper.SetmealDishMapper;
import com.itheima.reggie.service.SetmealDishService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SetmealDishServiceImpl implements SetmealDishService {
    @Autowired(required = false)
    private SetmealDishMapper setmealDishMapper;
    @Override
    public List<SetmealDish> findDishById(Long setmealId) {
        List<SetmealDish> setmealDishList = setmealDishMapper.findDishById(setmealId);

        return setmealDishList;
    }
}
